# 通过具体的网络地址，利用python爬虫的技术，获取数据
# 通过调用getData()函数，传入具体的网络地址，返回数据

import requests
from bs4 import BeautifulSoup


def scrape_data(url):
    response = requests.get(url)
    if response.status_code != 200:
        raise Exception(f"Failed to fetch data from {url}. Status code: {response.status_code}")
    soup = BeautifulSoup(response.content, 'html.parser')

    return soup

url = 'https://mxnavi-com.feishu.cn/sheets/X3F1sINr4hnGahtygw9cElejn7c?sheet=IMAQVy'

soup = scrape_data(url)

print(soup)